package com.zrrd.yunchmall.sale.service;

import com.zrrd.yunchmall.sale.entity.Coupon;
import com.zrrd.yunchmall.sale.entity.CouponHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 优惠券使用、领取历史表 服务类
 * </p>
 *
 * @author LYY
 * @since 2024-01-15
 */
@Service
public interface ICouponHistoryService extends IService<CouponHistory> {

    @Select("select * from sms_coupon_history sch join sms_coupon sc on sch.coupon_id=sc.id")
    List<Coupon>getCouponList(int ids);
}
